Skip to content

fix: allow "syntax_tree-rbs" to be used in "stree write --plugin=rbs" #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2025

Conversation

ms-jpq
Copy link
Contributor

@ms-jpq ms-jpq commented Apr 10, 2025

Error

wrong number of arguments (given 3, expected 1..2)
/root/.local/asdf/installs/ruby/3.2.6/lib/ruby/gems/3.2.0/gems/syntax_tree-rbs-1.0.0/lib/syntax_tree/rbs.rb:44:in `format'
/root/.local/asdf/installs/ruby/3.2.6/lib/ruby/gems/3.2.0/gems/syntax_tree-6.2.0/lib/syntax_tree/cli.rb:388:in `run'
/root/.local/asdf/installs/ruby/3.2.6/lib/ruby/gems/3.2.0/gems/syntax_tree-6.2.0/lib/syntax_tree/cli.rb:671:in `block (2 levels) in process_queue'

Replication

gem "syntax_tree"
gem "syntax_tree-rbs"
bundle exec stree write -- "..."

See https://github.com/anthropics/anthropic-sdk-ruby/blob/b6fd5e4a006c0720e5256fdece4943e45bb789c8/Gemfile#L15

@gschlager
Copy link

@kddnewton Could you merge this and release a new gem version? Thanks.

@kddnewton kddnewton closed this Jul 15, 2025
@kddnewton kddnewton reopened this Jul 15, 2025
@kddnewton kddnewton merged commit 0456a10 into ruby-syntax-tree:main Jul 15, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants